﻿<?php
	// 虽然没人这么无聊，但是通过用户名构造链接进行大规模注册验证还是可能的
	
	function sendEmail( $email, $title, $content)
	{
		$mail = new SaeMail();
		return $mail->quickSend( $email , $title , $content , '1930795729@qq.com' , '#include<QtGui>' );
		$mail->clean();
	}
	$name = $_REQUEST['name'];
	$password = $_REQUEST['password'];
	$email = $_REQUEST['email'];
	echo $name."<br>";
	
	$title = "SCUT Shop";
	$content =   "亲爱的".$name."点击以下链接激活您的账号\n"
				."http://scutshop.sinaapp.com/login/active.htm?name=".urlencode($name)."&md5password=".md5($password);
	
	echo $content;
	sendEmail( $email, $title, $content );
?>